package com.alibaba.ai.controller;

import com.alibaba.ai.service.DetailsService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * 王振东
 */
@Controller
public class DetailsController {
    //立即评估
    @Resource
    private DetailsService detailsService;
    @ResponseBody
    @RequestMapping("/hode")
    public List<JSONObject> Details(){
        List<JSONObject> list =detailsService.getDetails();
        return list;
    }
}
